package com.extension.company.model.entity;

/**
 * 作者：zwk
 * 时间：on 2019/2/25 10:43
 * 功能：微信授权登良，返回的微信的个人信息
 */
public class LoginBean {


	/**
	 * code : 200
	 * msg : 登录成功
	 * time : 1563452998
	 * data : {"userinfo":{"id":1,"group_id":1,"nickname":"测试账号","mobile":"13888888888","avatar":"","token":"2f4faaf2-89c9-4b8b-8519-298d77b02db7","user_id":1,"createtime":1563452998,"expiretime":1566044998,"expires_in":2592000}}
	 */

	private int code;
	private String msg;
	private String time;
	private DataBean data;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public DataBean getData() {
		return data;
	}

	public void setData(DataBean data) {
		this.data = data;
	}

	public static class DataBean {
		/**
		 * userinfo : {"id":1,"group_id":1,"nickname":"测试账号","mobile":"13888888888","avatar":"","token":"2f4faaf2-89c9-4b8b-8519-298d77b02db7","user_id":1,"createtime":1563452998,"expiretime":1566044998,"expires_in":2592000}
		 */

		private UserinfoBean userinfo;

		public UserinfoBean getUserinfo() {
			return userinfo;
		}

		public void setUserinfo(UserinfoBean userinfo) {
			this.userinfo = userinfo;
		}

		public static class UserinfoBean {
			/**
			 * id : 1
			 * group_id : 1
			 * nickname : 测试账号
			 * mobile : 13888888888
			 * avatar : 
			 * token : 2f4faaf2-89c9-4b8b-8519-298d77b02db7
			 * user_id : 1
			 * createtime : 1563452998
			 * expiretime : 1566044998
			 * expires_in : 2592000
			 */

			private int id;
			private int group_id;
			private String nickname;
			private String mobile;
			private String avatar;
			private String token;
			private int user_id;
			private int createtime;
			private int expiretime;
			private int expires_in;

			public int getId() {
				return id;
			}

			public void setId(int id) {
				this.id = id;
			}

			public int getGroup_id() {
				return group_id;
			}

			public void setGroup_id(int group_id) {
				this.group_id = group_id;
			}

			public String getNickname() {
				return nickname;
			}

			public void setNickname(String nickname) {
				this.nickname = nickname;
			}

			public String getMobile() {
				return mobile;
			}

			public void setMobile(String mobile) {
				this.mobile = mobile;
			}

			public String getAvatar() {
				return avatar;
			}

			public void setAvatar(String avatar) {
				this.avatar = avatar;
			}

			public String getToken() {
				return token;
			}

			public void setToken(String token) {
				this.token = token;
			}

			public int getUser_id() {
				return user_id;
			}

			public void setUser_id(int user_id) {
				this.user_id = user_id;
			}

			public int getCreatetime() {
				return createtime;
			}

			public void setCreatetime(int createtime) {
				this.createtime = createtime;
			}

			public int getExpiretime() {
				return expiretime;
			}

			public void setExpiretime(int expiretime) {
				this.expiretime = expiretime;
			}

			public int getExpires_in() {
				return expires_in;
			}

			public void setExpires_in(int expires_in) {
				this.expires_in = expires_in;
			}
		}
	}
}
